//
//  File.swift
//  
//
//  Created by 钟志远 on 2021/4/17.
//

import Foundation
import Vapor
import Fluent

final class FileTypeModel: Model, Content {
    static var schema: String = "file_type"
    
    init() {}
    
    @ID(key: .id)
    var id: UUID?
    
    @Field(key: "ext")
    var ext: String
    
    @Field(key: "icon")
    var icon: String
    
    init(ext: String, icon: String) {
        self.ext = ext
        self.icon = icon
    }
}
